package cn.sunagy.security.maz.admin;

import cn.sunagy.security.maz.auth.client.EnableMazAuthClient;
import com.ace.cache.EnableAceCache;
import com.github.wxiaoqi.merge.EnableAceMerge;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableEurekaClient
@EnableCircuitBreaker
@SpringBootApplication
@EnableFeignClients({"cn.sunagy.security.maz.auth.client.feign","cn.sunagy.security.maz.admin.feign"})
@EnableScheduling
@EnableAceCache
@EnableTransactionManagement
@MapperScan("cn.sunagy.security.maz.admin.mapper")
@EnableMazAuthClient
@EnableSwagger2Doc
@EnableAceMerge
public class MazAdminApplication {
	public static void main(String[] args) {
		SpringApplication.run(MazAdminApplication.class, args);
	}
}
